import { createApp } from "vue";
import { createPinia } from "pinia";

import App from "./App.vue";
import router from "./router";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";

import "./assets/main.css";
import "normalize.css";

import { Icon } from "vant";
import { Tabbar, TabbarItem } from "vant";
import { Search } from "vant";
import { Swipe, SwipeItem } from "vant";
import { Grid, GridItem } from "vant";
import { List, Cell } from "vant";
import { CountDown } from "vant";
import { NavBar } from "vant";
import { Button } from "vant";
import { Form, Field, CellGroup } from "vant";
import { Popover } from "vant";
import { ActionBar, ActionBarIcon, ActionBarButton } from "vant";
import { Empty } from "vant";
import { Checkbox } from "vant";
import { SubmitBar } from "vant";
import { Card } from "vant";
import { SwipeCell } from "vant";
import { AddressEdit } from "vant";
import { AddressList } from "vant";
import { Popup } from "vant";
import { ContactCard } from "vant";
const app = createApp(App);
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
app.use(pinia);
app.use(router);

app.use(Icon);
app.use(Tabbar);
app.use(TabbarItem);
app.use(Search);
app.use(Swipe);
app.use(SwipeItem);
app.use(Grid);
app.use(GridItem);
app.use(List);
app.use(Cell);
app.use(CountDown);
app.use(NavBar);
app.use(Form);
app.use(Field);
app.use(CellGroup);
app.use(Button);
app.use(Popover);
app.use(Empty);
app.use(Checkbox);
app.use(SubmitBar);
app.use(Card);
app.use(SwipeCell);
app.use(AddressEdit);
app.use(AddressList);
app.use(Popup);
app.use(ContactCard);

app.use(ActionBar);
app.use(ActionBarIcon);
app.use(ActionBarButton);
app.mount("#app");
